SQL: Advanced SQL Query optimization techniques by Andy Vickler
Author:Andy Vickler [Vickler, Andy]
Language: eng
Format: azw3, epub
Published: 2021-07-10T16:00:00+00:00
The WHERE clause also has a condition guaranteeing only one row will be returned by the join. This is most likely to be an equality condition on the primary or unique key's column/s.
AND operators must be used with these conditions, and Oracle will do a nested loops operation to execute the statement.
In the statement below, two tables, called dept and emp, are clustered on the column named deptno. The emp tableâs primary key is the empno column:
SELECT *
FROM emp, dept
WHERE emp.deptno = dept.deptno
AND emp.empno = 7900;
The EXPLAIN PLAN output looks like this:
OPERATION OPTIONS OBJECT_NAME
-----------------------------------------------------
SELECT STATEMENT
NESTED LOOPS
TABLE ACCESS BY ROWID EMP
INDEX UNIQUE SCAN PK_EMP
TABLE ACCESS CLUSTER DEPT
The index enforcing the primary key is called pk_emp.
RBO Path 3: Single Row by Hash Cluster Key with Unique or Primary Key
This one relies on both the following conditions being true to be available:
The WHERE clause uses all the hash cluster key's columns in the equality conditions. In the case of composite cluster keys, AND operators must be used with the equality conditions.
Download
SQL: Advanced SQL Query optimization techniques by Andy Vickler.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(25279)
Hello! Python by Anthony Briggs(24320)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(23417)
Kotlin in Action by Dmitry Jemerov(22500)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(21952)
Dependency Injection in .NET by Mark Seemann(21834)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(20696)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(19513)
Grails in Action by Glen Smith Peter Ledbrook(18591)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17028)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(15836)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(13683)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(11844)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11149)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10619)
Hit Refresh by Satya Nadella(9185)
The Kubernetes Operator Framework Book by Michael Dame(8560)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8398)
Robo-Advisor with Python by Aki Ranin(8344)